package com.rightsidetech.trade.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class TdBuyCarDetailInsertReq implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty(value = "商品id",required = true)
    @NotNull(message = "商品id不能为空")
    private Long commodityId;

/*    @ApiModelProperty(value = "商品名称",required = true)
    @NotBlank(message = "商品名称不能为空")
    private String commodityName;*/

    @ApiModelProperty(value = "购买方式,  0-直接买新, 1-以旧换新",required = true)
    @NotNull(message = "购买方式不能为空")
    private Byte buyType;

    @ApiModelProperty(value = "商品条码",required = false)
    private String commodityBarCode;

    @ApiModelProperty(value = "商品规格",required = false)
    private String commoditySpecs;

/*    @ApiModelProperty(value = "原价",required = true)
    @NotNull(message = "原价不能为空")
    private BigDecimal underlinedPrice;

    @ApiModelProperty(value = "单件价格",required = true)
    @NotNull(message = "单件价格不能为空")
    private BigDecimal commodityPrice;*/

    @ApiModelProperty(value = "商品数量",required = true)
    @NotNull(message = "商品数量不能为空")
    private Integer commodityNum;

/*    @ApiModelProperty(value = "商品标签, 0-商品, 1-赠品, 2-超值换购",required = true)
    //@NotNull(message = "商品标签不能为空")
    @Range(min = 0,max = 2,message = "商品标签不正确")
    private Byte commodityTag;*/

/*    @ApiModelProperty(value = "商品图片",required = false)
    private String picture;*/

/*    @ApiModelProperty("分类id")
    private Long typeId;*/

/*    @ApiModelProperty("换购/赠品列表")
    private List<TdBuyCarDetailZpInsertReq> list;*/
}
